import cors from 'cors';

const corsMiddleware = cors({
    origin: (origin, callback) => {
        if (!origin) {
        }
        return callback(null, true);
    },
    credentials: true,
    allowedHeaders: ['Content-Type', 'Authorization'],
});

export default corsMiddleware;